package org.rxc.gift.clients;

import feign.hystrix.FallbackFactory;
import org.rxc.gift.clients.fallback.AuthClientFallback;
import org.rxc.gift.domain.LoginUser;
import org.rxc.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "gift-auth",fallbackFactory = AuthClientFallback.class)
public interface AuthClient{

    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

}
